package com.lora.dto;

import lombok.Data;

@Data
public class AlarmValidateDto {
    private boolean result;
    private String tipMsg;
    public AlarmValidateDto(boolean result, String tipMsg) {
        this.result = result;
        this.tipMsg = tipMsg;
    }
    public static AlarmValidateDto getSuccessResult() {
        return new AlarmValidateDto(true, null);
    }

    public static AlarmValidateDto getFailResult(String tipMsg) {
        return new AlarmValidateDto(false, null);
    }
}
